import AppImageUrls from "./AppImageUrl.js";

/**
 * 用户信息类
 */
export default class AppUserInfo {
    /**
     * 用户ID
     * @type {number}
     */
    id;

    /**
     * 用户名
     * @type {string}
     */
    name;

    /**
     * 用户账号
     * @type {string}
     */
    account;

    /**
     * 头像URL集合
     * @type {AppImageUrls}
     */
    profile_image_urls;

    /**
     * 是否已关注
     * @type {boolean}
     */
    is_followed;

    /**
     * 是否接受请求
     * @type {boolean}
     */
    is_accept_request;

    constructor(data) {
        this.id = data.id;
        this.name = data.name;
        this.account = data.account;
        this.profile_image_urls = new AppImageUrls(data.profile_image_urls);
        this.is_followed = data.is_followed;
        this.is_accept_request = data.is_accept_request;
    }
}